#include<iostream>
using namespace std;
#include<vector>
class Solution {
public:
    void reverseString(vector<char>& s) {
        int i = 0; int j = s.size() - 1;
        while (i < j)
        {
            myswap(s, i++, j--);
        }
    }
    void myswap(vector<char>& s, int i, int j)
    {
        int tmp = s[i];
        s[i] = s[j];
        s[j] = tmp;
    }
};

void main()
{
	system("pause");
	return;
}